package com.ls.fw.frame.data.service.impl;

import java.util.List;
import javax.annotation.Resource;
import org.springframework.stereotype.Service;

import com.ls.fw.frame.data.dao.DataTableInfoDao;
import com.ls.fw.frame.data.model.DataTableInfo;
import com.ls.fw.frame.data.model.example.DataTableInfoExample;
import com.ls.fw.frame.data.vo.DataTableInfoVo;
import com.ls.fw.frame.data.service.DataTableInfoService;
import com.ls.fw.data.rdb.impl.dao.EntityDao;
import com.ls.fw.data.rdb.impl.service.EntityServiceAdapter;


/**
 * 
 * @author ls
 * 2016年06月10日 16时40分37秒
 */
@Service("dataTableInfoService")   
public class DataTableInfoServiceImpl extends EntityServiceAdapter<DataTableInfo,DataTableInfoVo,java.lang.Long>  implements DataTableInfoService{
	
    private DataTableInfoDao dataTableInfoDao = null;
   
    @Resource
    public void setDataTableInfoDao(DataTableInfoDao dataTableInfoDao) {
		this.dataTableInfoDao = dataTableInfoDao;
    }
 
	
	@SuppressWarnings("unchecked")
	@Override
	public <D extends EntityDao<DataTableInfo, DataTableInfoVo,java.lang.Long>> D getEntityDao(){
		return (D) dataTableInfoDao;
	}
	
	@Override
	public List<DataTableInfo> selectByExample(DataTableInfoExample example) {
		return this.dataTableInfoDao.getMapper().selectByExample(example);
	}


	@Override
	public DataTableInfo selectOneByExample(DataTableInfoExample example) {
		return this.dataTableInfoDao.getMapper().selectOneByExample(example);
	}

	@Override
	public DataTableInfo selectOne(DataTableInfo record) {
		return this.dataTableInfoDao.getMapper().selectOne(record);
	}


	@Override
	public List<DataTableInfo> select(DataTableInfo record) {
		return this.dataTableInfoDao.getMapper().select(record);
	}


	@Override
	public int deleteByExample(DataTableInfoExample example) {
		return this.dataTableInfoDao.getMapper().deleteByExample(example);
	}


	@Override
	public int updateByExampleSelective(DataTableInfo record,
			DataTableInfoExample example) {
		return this.dataTableInfoDao.getMapper().updateByExampleSelective(record, example);
	}
}
